import type { VxeGridPropTypes } from "vxe-table/types/grid";

export const pagerConfig: VxeGridPropTypes.PagerConfig = {
  size: "small",
  pageSize: 15,
  background: true,
  layouts: ["Total", "PrevPage", "JumpNumber", "NextPage", "Sizes", "FullJump"],
};
export const proxyConfigProps: any = {
  // 用于列表，读取响应数据，不分页
  list: "data",
  message: "msg",
  // 用于分页，读取总条数
  total: "data.total",
  // 用于分页，读取响应数据
  result: "data.records",
};
export const importProxyConfigProp: any = {
  // 用于列表，读取响应数据，不分页
  list: "data",
  message: "msg",
  // 用于分页，读取总条数
  total: "data.length",
  // 用于分页，读取响应数据
  result: "data",
};
